package org.brisling.medical.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseDomainExcludeId;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;


/**
 * 
 * <p>Title: InpatientDiagnosis</p>
 * <p>Description: 住院诊断信息实体类</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年2月21日 上午11:16:45
 */
@Entity
@Table(name=ConstSysParam.MODULE_INPATIENT_DIAGNOSIS)
public class InpatientDiagnosis extends BaseDomainExcludeId implements BaseDomainInf {

	/*
	 * 主键
	 */
	@Id
	@Column
	@GeneratedValue(strategy=GenerationType.TABLE,generator="inpatientDiagnosisGenerator")
	@TableGenerator(name="inpatientDiagnosisGenerator",
					table="sysman_generation_key",
					pkColumnValue=ConstSysParam.MODULE_INPATIENT_DIAGNOSIS,
					pkColumnName="primary_key",
					valueColumnName="key_value",
					allocationSize=1)
	private Long id;
	
	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return this.id;
	}


	@Override
	public void setId(Long id) {
		// TODO Auto-generated method stub
		this.id = id;
	}
	
	//住院识别号
	private Long patient_id;
	
	//住院号码
	private String zyhm;
	
	//诊断类型
	private String diagnosis_type;
	
	//疾病名称
	private String disease;
	
	//icd编码
	private String icd9;
	
	
	//入院诊断合并信息
	@Transient
	private String diagnosis_in;
	
	//入院诊断合并信息
	@Transient
	private String diagnosis_out;
	

	public Long getPatient_id() {
		return patient_id;
	}


	public void setPatient_id(Long patient_id) {
		this.patient_id = patient_id;
	}


	public String getZyhm() {
		return zyhm;
	}


	public void setZyhm(String zyhm) {
		this.zyhm = zyhm;
	}


	public String getDiagnosis_type() {
		return diagnosis_type;
	}


	public void setDiagnosis_type(String diagnosis_type) {
		this.diagnosis_type = diagnosis_type;
	}


	public String getDisease() {
		return disease;
	}


	public void setDisease(String disease) {
		this.disease = disease;
	}


	public String getIcd9() {
		return icd9;
	}


	public void setIcd9(String icd9) {
		this.icd9 = icd9;
	}


	public String getDiagnosis_in() {
		return diagnosis_in;
	}


	public void setDiagnosis_in(String diagnosis_in) {
		this.diagnosis_in = diagnosis_in;
	}


	public String getDiagnosis_out() {
		return diagnosis_out;
	}


	public void setDiagnosis_out(String diagnosis_out) {
		this.diagnosis_out = diagnosis_out;
	}
	
	
}
